﻿using System.Collections.Generic;
using NHibernate.Search.Attributes;

namespace Wikey.Entity {

    [Indexed(Index="Content")]
    public class ContentNode : Entity<int>  {
        public IList<PageContentNode> PageContentNodes { get;set; }

        [Field(Index.Tokenized), Boost(2)]
        public string Description { get; set; }

        [Field(Index.Tokenized)]
        public string Text { get; set;  }

        public IList<Page> Pages { get; set; }

        public User CreatedBy { get; set; }

        public User ModifiedBy { get; set; }

        public ContentNode()
        {
            PageContentNodes = new List<PageContentNode>();
        }
    }
}
